﻿using PMP.Core.Enums;

namespace PMP.Core.Extensions;

public static class EnumHelper
{
    /// <summary>
    /// 用户级别转换成项目级别
    /// </summary>
    /// <param name="userLevel"></param>
    /// <returns></returns>
    public static EnumProjectLevel ToProjectLevel(this EnumUserLevel userLevel)
    {
        return (EnumProjectLevel)(int)userLevel;
    }
}